extract date from DateTime object php

45

$time = '2013-01-22 10:45:45';

echo $time = date("H:i:s",strtotime($time));

Comments

Submit
0 Comments